
mod hello;
use hello::num::num;

#[allow(unused)]
mod veriables;
#[allow(unused)]
use veriables::vera;
#[allow(unused)]
use veriables::types::types;
#[allow(unused)]
use veriables::methods::methods;
#[allow(unused)]
use veriables::bodys::bodys;
#[allow(unused)]
use veriables::bodys::bodys::User;
#[allow(unused)]
use veriables::enums::enums;
#[allow(unused)]
use veriables::enums::enums::People;
#[allow(unused)]
use veriables::vectory::vectory;

#[allow(unused)]
mod flow;
#[allow(unused)]
use flow::coll::coll;

#[allow(unused)]
mod macros;
#[allow(unused)]
use macros::macro_def;

#[allow(unused)]
mod cmds;
#[allow(unused)]
use cmds::cmds::cmd_ex;
#[allow(unused)]
use cmds::ios::ios;


fn main() {
    //helo world测试
    hello::hello_world();

    //guess();
    //rand_guess();
    let run = false;
    if run {
        num::loop_guess();
    }

    //veriables::vera::str_mut();
    //vera::let_ver();
    //types::array_pue();
    //let v = types::new_var("hello-world-today".to_string(), true);
    //v.let_mut();
    //let num = v.let_num();
    //println!("user enter num is {}", num);
    //let map = v.let_for();
    //println!("map content {:?}", map);
    //println!("live content {}", v.check_live());
    //types::change_ver();

    //let n = vectory::check_vec();
    //println!("data return is {}",n)

    let mut  que = vectory::Queue::<i32>::new(10);
    let qs = que.size();
    println!("queue size is {}", qs);
    que.push(32);
    let qs = que.size();
    println!("queue size is {}", qs);

    //methods::arg_method(4);
    //let num = methods::args_method(4, 5);
    //let num = methods::case_arg(6);
    //let num = methods::loop_arg(9);
    //println!("total num is {}", num);

    //let user: User = bodys::new_user(String::from("wang"), 20);
    //let user: User = bodys::construct_user((String::from("wang"), 23, true, 3421));
    //let user1: User = bodys::transform_user(String::from("zhang"), user);
    //user的变量已经使用转换，该变量已经被消除
    //println!("user is live {}, name={}", user1.is_live(), user1.get_name());


    //let people: People = enums::new_people(enums::Corn::NATIVE, String::from("li"), String::from("beijing"));
    //println!("people has {}", people.check_people());

    //coll::test_vec();
    //macro_def::say_he(String::from("lisi"));

    //cmd_ex::cmd_print();
    //ios::read_file("/Users/wangshuaixin/work/rust/workspace/rt-goods/Cargo.toml".to_string());
    //ios::read_data("/Users/wangshuaixin/work/rust/workspace/rt-goods/Cargo.toml".to_string());
}

